//package com.abc.controller;
//
//import com.abc.pojo.Student;
//import org.springframework.context.ApplicationContext;
//import org.springframework.context.support.ClassPathXmlApplicationContext;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.GetMapping;
//
//@Controller
//public class MyController {
//    @GetMapping("/get")
//    public String getmsg(){
//        ApplicationContext context = new ClassPathXmlApplicationContext("Applicationcontext.xml");
//        Student bean = context.getBean("mystudent", Student.class);
//        System.out.println(bean);
//        return bean.toString();
//    }
//}
